#ifndef __TRACK_FORM_CFG
#define __TRACK_FORM_CFG

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>

#include "ColorPickerButton.hpp"

class TOziTrackCfgForm : public TForm {
  __published:
        TPageControl *pages;
        TTabSheet *TabSheet2;
        TBitBtn *btnOK;
        TLabel *Label1;
        TEdit *Edit1;
        TUpDown *btnResizeHeight;
        TLabel *Label2;
        TEdit *Edit2;
        TUpDown *btnAvg;
        TLabel *Label3;
        TLabel *Label4;
        TTabSheet *TabSheet1;
        TColorPickerButton *btnBkColor;
        TLabel *Label5;
        TColorPickerButton *btnGridColor;
        TLabel *Label14;
        TGroupBox *GroupBox1;
        TLabel *Label6;
        TEdit *Edit3;
        TUpDown *btnCurPointWidth;
        TLabel *Label7;
        TLabel *Label8;
        TEdit *Edit4;
        TUpDown *btnCurLength;
        TLabel *Label9;
        TLabel *Label10;
        TEdit *Edit5;
        TUpDown *btnCurLineWidth;
        TLabel *Label11;
        TLabel *Label12;
        TColorPickerButton *btnCurLineColor;
        TColorPickerButton *btnCurPointColor;
        TLabel *Label13;
        TGroupBox *GroupBox2;
        TLabel *Label15;
        TLabel *Label16;
        TLabel *Label17;
        TLabel *Label18;
        TLabel *Label19;
        TLabel *Label20;
        TLabel *Label21;
        TColorPickerButton *btnPathLineColor;
        TColorPickerButton *btnPathPointColor;
        TLabel *Label22;
        TEdit *Edit6;
        TUpDown *btnPathPointWidth;
        TEdit *Edit7;
        TUpDown *btnPathLineWidth;
        TEdit *Edit8;
        TUpDown *btnPathDirectWidth;
        TColorPickerButton *btnPathDirectColor;
        TLabel *Label23;
        TColorPickerButton *btnPathCurrentColor;
        TLabel *Label24;
        TColorPickerButton *btnPathSelDirectColor;
        TLabel *Label25;
        TLabel *Label28;
        TEdit *Edit10;
        TUpDown *btnScale;
        TLabel *Label29;
        TGroupBox *GroupBox3;
        TLabel *Label36;
        TColorPickerButton *btnInfoColor;
        TCheckBox *chDrawInfo;
        TCheckBox *chDrawStartTime;
        TCheckBox *chDrawDist;
        TCheckBox *chDrawEtaTime;
        TLabel *Label30;
        TLabel *Label31;
        TEdit *Edit11;
        TUpDown *btnInfoFont;
        TLabel *Label32;
        TColorPickerButton *btnInfoFontColor;
        TCheckBox *chDrawAvgSpeed;
        TCheckBox *chDrawNumber;
        TCheckBox *chDrawPathPoints;
        TColorPickerButton *btnNearestPointColor;
        TLabel *Label26;
        TCheckBox *chCompressData;
        TCheckBox *chAutosave;
        TLabel *Label27;
        TLabel *Label33;
        TEdit *Edit9;
        TUpDown *btnAutosave;
        TLabel *Label34;
        TEdit *edtAutosaveFile;
        TCheckBox *chLoadAutosave;
        TGroupBox *GroupBox4;
        TLabel *Label35;
        TColorPickerButton *btnPlaceNumColor;
        TLabel *Label37;
        TLabel *Label38;
        TLabel *Label39;
        TColorPickerButton *btnPlaceNumFontColor;
        TEdit *Edit12;
        TUpDown *btnPlaceNumFontSize;
        TCheckBox *chDrawPlaceNum;
        TLabel *Label40;
        TLabel *Label41;
        TEdit *Edit13;
        TUpDown *btnPlaceSize;
        TLabel *Label44;
        TColorPickerButton *btnPlaceColor;
        TLabel *Label45;
        TLabel *Label46;
        TLabel *Label42;
        TLabel *Label43;
        TEdit *Edit14;
        TUpDown *btnPlaceCenterSize;
        TLabel *Label47;
        TColorPickerButton *btnPlaceHandleColor;
        void __fastcall btnOKClick(TObject *Sender);
        void __fastcall FormKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
          
  public:
    TrackOptions op;

  public:
    __fastcall TOziTrackCfgForm(TComponent* Owner,const TrackOptions& op);
};

#endif
